package com.neo.quartz.task;

import com.neo.common.utils.StringUtils;
import com.neo.pub.service.IQFPatientService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 定时任务调度测试
 * 
 * @author tr
 */
@Component("myTask")
public class MyTask
{

    @Autowired
    private IQFPatientService iqfPatientService;

    public void senMessage(String msg)
    {
        System.out.println(StringUtils.format("定时发送短信： {}", msg));
        iqfPatientService.sendQFMsg();
    }

}
